/*
 * @Date: 2020-08-24 12:03:10
 * @LastEditors: xujianxing
 * @LastEditTime: 2020-08-24 17:56:07
 * @FilePath: \nili\src\modules\user\dto\create-user.dto.ts
 */

import { IsString, IsInt } from 'class-validator';

export class UserDto {
  @IsInt()
  id: number;

  @IsString()
  name: string;

  @IsString()
  pwd: string;

  @IsInt()
  age: number;

  @IsString()
  hobbit: string;
}
